package de.hska.pwmanager.controller.internal;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import de.hska.pwmanager.persistence.model.User;
import de.hska.pwmanager.persistence.model.dao.UserDao;

@Component
public class AdminCreator {
	@Autowired
	private UserDao userDao;
	
//	@PostConstruct
	public void init()  {
		this.userDao.save(new User().setId(0L).setPassword("topSecret!123").setUsername("administrator"));
	}
}
